/*
 * @Author: huangtianyang 916072572@qq.com
 * @Date: 2023-11-20 15:04:29
 * @LastEditors: huangtianyang
 * @LastEditTime: 2024-04-29 14:40:34
 * @FilePath: \cxl-driving-training\src\views\trainingGround\edit\formConfig.ts
 */
import { PropsFormpData } from '@/utils/interface'

export const listConfig: PropsFormpData[] = [
    [
        {
            key: 'name',
            label: '训练场名称：',
            placeholder: '请输入',
            required: true,
            message: '请输入训练场名称',
            value: '',
            type: 'text',
            width: 1,
            trigger: 'blur',
            valid: true
        },
        {
            key: 'siteType',
            label: '场地类型：',
            placeholder: '请选择',
            required: true,
            message: '请选择场地类型',
            value: '',
            type: 'select',
            width: 1,
            trigger: 'blur',
            options: [
                { label: '普通场', value: '1' },
                { label: '智能场', value: '2' },
                { label: '机器人场', value: '3' },
                { label: '仿真场', value: '4' }
            ],
            valid: true
        },
        {
            key: 'ownFlag',
            label: '是否自有：',
            placeholder: '请选择',
            required: true,
            message: '请选择',
            value: '',
            type: 'select',
            width: 1,
            trigger: 'blur',
            options: [
                { label: '是', value: '1' },
                { label: '否', value: '0' }
            ],
            valid: true
        }
        // {
        //     key: 'b',
        //     label: '所属驾校：',
        //     placeholder: '请选择',
        //     required: true,
        //     message: '请选择所属驾校',
        //     value: '',
        //     type: 'select',
        //     width: 1,
        //     trigger: 'blur',
        //     options: [],
        //     valid: true
        // }
    ],
    [
        {
            key: 'openHours',
            label: '营业时间：',
            placeholder: '请输入',
            required: true,
            message: '请输入营业时间',
            value: '',
            type: 'text',
            width: 4,
            trigger: 'blur',
            options: [],
            valid: true
        }
    ],
    [
        {
            key: 'addressDetail',
            label: '地址：',
            placeholder: '请输入',
            required: true,
            message: '请输入地址',
            value: '',
            type: 'map',
            hasDetailed: true,
            width: 4,
            trigger: 'blur',
            options: [],
            latLng: [],
            valid: true,
            regionId: ''
        }
    ],
    [
        {
            key: 'sitePicList',
            label: ' 场地视频/图片：',
            required: true,
            message: '请上传场地视频/图片',
            value: ['', '', '', '', '', ''],
            type: 'file',
            width: 4,
            count: ['image', 'image', 'image', 'video', 'video', 'video'],
            tagVisible: true,
            hint: '图片仅支持png、jpg格式，大小不超过5M，视频仅支持MP4格式',
            trigger: 'blur',
            valid: true,
            dirType: 'train_site'
        }
    ],
    [
        {
            key: 'equipmentIntroduction',
            label: ' 场地设备介绍：',
            required: true,
            message: '请输入',
            value: '',
            type: 'tinymce',
            width: 4,
            tagVisible: false,
            hint: '',
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'siteIntroduction',
            label: ' 场地介绍：',
            required: true,
            message: '请输入',
            value: '',
            type: 'tinymce',
            width: 4,
            tagVisible: false,
            hint: '',
            trigger: 'blur',
            valid: true
        }
    ],
    [
        {
            key: 'supportFacilitys',
            label: ' 周边配套：',
            required: true,
            message: '请上传周边配套',
            value: ['', '', '', '', '', '', '', ''],
            type: 'file',
            width: 4,
            count: ['image', 'image', 'image', 'image', 'image', 'image', 'image', 'image'],
            tagVisible: true,
            hint: '',
            trigger: 'blur',
            valid: true,
            dirType: 'train_site',
            placeholder: '请输入'
        }
    ]
]
